package business.report.impl;

import business.report.EstateCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.EstateCompany;
import report.domain.EstateCompanyCriteria;
import report.mapper.EstateCompanyMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "estateCompanyService")
public class EstateCompanyServiceImpl implements EstateCompanyService{
    @Autowired
    EstateCompanyMapper estateCompanyMapper;

    @Override
    public List<EstateCompany> getEstateCompany() {
        EstateCompanyCriteria criteria = new EstateCompanyCriteria();
        criteria.createCriteria().getAllCriteria();
        return estateCompanyMapper.selectByExample(criteria);
    }
}
